/*
 * @Date: 2024-04-02 14:58:12
 * @LastEditors: bingkui.wu
 * @LastEditTime: 2024-04-02 15:41:27
 * @Description: 教材课本
 */
import mongoose, { Schema, Model, Document } from "mongoose";

export interface IBookCategory extends Document {
    /** 教材Id */
    categoryId: number,
    /** 教材名字 */
    categoryName: string
}

export interface IBookCategoryModel extends Model<IBookCategory> {}

const schema = new Schema({
    categoryId: Number,
    categoryName: String
});

export const BookCategory = mongoose.model<IBookCategory>("book_category", schema) as IBookCategoryModel;
